{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<style type="text/css">
.page{float:left;}
</style>
<body>
<div class="sub-body">
<div class="tab_info"  style="width:900px;">
<div class="tab-title-1"><span>{$lang.buyer_manage}</span></div>
<table  width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
	<tr>
		<td colspan="5" align="right" style="padding-right:50px;"><a href="{url index.php?app=buyer&act=add}" class="add btn-2">{$lang.add_new_buyer}</a></td>
	</tr>
      <tr>
        <th width="40%">{$lang.buyer_name}</th>
        <th width="20%">{$lang.company}</th>
        <th width="20%">{$lang.merchandiser}</th>
		<th width="10%">{$lang.if_show}</th>
		<th width="10%">{$lang.handle}</th>
      </tr>
	  <!--{foreach from=$buyers item=buyer}-->
       <tr>
        <td>{$buyer.buyer_name|escape}</td>
        <td>{$buyer.company_name|escape}</td>
        <td>{$buyer.user_name|escape}</td>
        <td><!--{if $buyer.if_show}-->{$lang.yes}<!--{else}-->{$lang.no}<!--{/if}--></td>
		<td><a href="{url app=buyer&act=edit&buyer_id=$buyer.buyer_id}">{$lang.edit}</a>&nbsp; <a href="javascript:if(confirm('确认删除此买手吗?')==true){location.href='{url app=buyer&act=del&buyer_id=$buyer.buyer_id}';};">{$lang.delete}</a> </td>
      </tr>
	  <!--{/foreach}-->
    </table>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div><!--{include file=page.html}--></div>
</body>
</html>